<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="keywords" content="jquery,ui,easy,easyui,web">
	<meta name="description" content="easyui help you build your web page easily!">
	<title>高邮市菱塘回族乡人民政府电子政务管理系统</title>
	<link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="css/main.css">
	<script type="text/javascript" src="easyui/jquery-1.7.2.min.js"></script>
	<script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="easyui/datagrid-detailview.js"></script>
	<script type="text/javascript" src="easyui/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript">
	//用来存放差值  
	var differentMillisec = 0;  
	differentMillisec = <?php echo time()*1000?> - new Date();
	
	//显示服务器时间  
	function showServerTime(){  
	    now = new Date();  
	    now.setTime(differentMillisec + now.getTime());  
	    var str = now.getFullYear() + "年";  
	    var temp = now.getMonth() + 1;  
	    if (temp < 10) str += "0";  
	    str += temp +  "月";  
	    temp = now.getDate();  
	    if (temp < 10) str += "0";  
	    str += temp +  "日";  
	    var today = new Array("星期日", "星期一", "星期二", "星期三", "星期四", "星期五", "星期六");  
	    str += " " + today[now.getDay()] + " ";  
	    temp = now.getHours();  
	    if (temp < 10) str += "0";  
	    str += temp +  ":";  
	    temp = now.getMinutes();  
	    if (temp < 10) str += "0";  
	    str += temp +  ":";  
	    temp = now.getSeconds();  
	    if (temp < 10) str += "0";  
	    str += temp;  
	    document.getElementById("HeadRight_ServerTime").innerHTML = str;  
	    ctroltime=setTimeout("showServerTime()", 1000);  
	} 
	</script>
	<script type="text/javascript">
		$(function(){
			<?php if($this->controller == 'my'):?>
				$('#mm').accordion('select','我的空间');
			<?php elseif($this->controller == 'car'):?>
				$('#mm').accordion('select','用车管理');
			<?php elseif($this->controller == 'dinner'):?>
				$('#mm').accordion('select','用餐管理');
			<?php elseif($this->controller == 'document'):?>
				$('#mm').accordion('select','公文管理');
			<?php elseif($this->controller == 'admin'):?>
				$('#mm').accordion('select','系统管理');
			<?php endif;?>		
		});
	</script>
	<script type="text/javascript">
		var url;
		function editPassword(){
			$('#dlg9').dialog('open').dialog('setTitle','修改密码');
			$('#fm9').form('clear');
			url = '<?php echo url('user','password')?>';
		}
		function savePassword(){
			$('#fm9').form('submit',{
				url: url,
				onSubmit: function(){
					return $(this).form('validate');
				},
				success: function(result){
					var result = eval('('+result+')');
					if (result.success){
						$('#dlg9').dialog('close');		// close the dialog
					} else {
						$.messager.show({
							title: '错误',
							msg: result.msg
						});
					}
				}
			});
		}
		
		$.extend($.fn.validatebox.defaults.rules, {  
		    minLength: {  
		        validator: function(value, param){  
		            return value.length >= param[0];  
		        },  
		        message: '该输入项至少 {0} 字符.'  
		    }  
		});  
	</script>
	<script language="javascript" src="lodop/LodopFuncs.js"></script>
	<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
		<embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0 pluginspage="lodop/install_lodop.exe"></embed>
	</object> 
</head>

<body class="easyui-layout" onload="javascript:showServerTime()">
	<div id="lodop-dlg1" class="easyui-dialog" style="width:420px;height:236px;padding:10px 20px" closed="true">
		<span id="lodop-dlg1-span"><font color='#FF00FF'>打印控件未安装!点击这里<a href='lodop/install_lodop.exe'>执行安装</a>,安装后请刷新页面或重新进入。</font></span>
	</div>
	<div id="lodop-dlg2" class="easyui-dialog" style="width:420px;height:236px;padding:10px 20px" closed="true">
		<span id="lodop-dlg2-span"><font color='#FF00FF'>打印控件需要升级!点击这里<a href='lodop/install_lodop.exe'>执行升级</a>,升级后请重新进入。</font></span>
	</div>
	
	<div region="north" border="false" style="height:172px;" >
		<div id="sln" class="sensiolabs_network_bar clear_fix">
			<?php if(QP_Session_Session::get('login_userid')):?>
			<div class="sln_connect_button_wrapper"><a href="<?php echo url('index','logout')?>" onclick="return confirm('一定要退出吗？')"><span>退出</span></a></div>
			<div class="sln_connect_button_wrapper"><a href="javascript:void(0)" onclick="editPassword()"><span><?php echo QP_Session_Session::get('login_displayname')?> (<?php echo QP_Session_Session::get('login_username')?>)</span></a></div>
			<div class="sln_connect_button_wrapper"><a href="javascript:void(0)"><span>系统时间：<span id="HeadRight_ServerTime"></span></span></a></div>
			<?php else:?>
			<div class="sln_connect_button_wrapper"><a href="<?php echo url('index','login')?>"><span>登录</span></a></div>
			<div class="sln_connect_button_wrapper"><a href="javascript:void(0)"><span>系统时间：<span id="HeadRight_ServerTime"></span></span></a></div>
			<?php endif;?>
		</div>
		<div class="header">
			<div class="illustration_logo_header">
				<a href="<?php echo url('index','index')?>"><img src="images/logo.jpg" alt="" class="png_fix"  width="130" height="130" border="0"/></a>
			</div>
		</div>
	</div>
	
	<?php if(QP_Session_Session::get('login_userid')):?>
	<div region="west" border="true" split="true" title="菜单" style="width:250px;padding:5px;">
		<div id="mm" class="easyui-accordion" border="false">
			<div title="我的空间">
				<ul class="pitem">
					<li><a href="<?php echo url('my','index')?>">我的桌面</a></li>
					<li><a href="<?php echo url('my','car')?>">用车报表</a></li>
					<li><a href="<?php echo url('my','dinner')?>">用餐报表</a></li>
					<li><a href="<?php echo url('my','document')?>">我的公文</a></li>
				</ul>
			</div>
			
			<?php if(QP_Session_Session::get('login_is_operator')):?>
			<div title="用车管理">
				<ul class="pitem">
					<li><a href="<?php echo url('car','index')?>">申请打印</a></li>
					<li><a href="<?php echo url('car','checkout')?>">费用结算</a></li>
					<li><a href="<?php echo url('car','sum')?>">统计分析</a></li>
				</ul>
			</div>
			<div title="用餐管理">
				<ul class="pitem">
					<li><a href="<?php echo url('dinner','index')?>">申请打印</a></li>
					<li><a href="<?php echo url('dinner','checkout')?>">费用结算</a></li>
					<li><a href="<?php echo url('dinner','sum')?>">统计分析</a></li>
				</ul>
			</div>
			<div title="公文管理">
				<ul class="pitem">
					<li><a href="<?php echo url('document','index')?>">公文登记</a></li>
				</ul>
			</div>
			<?php endif;?>
			
			<?php if(QP_Session_Session::get('login_is_admin')):?>
			<div title="系统管理">
				<ul class="pitem">
					<li><a href="<?php echo url('admin','user')?>">用户管理</a></li>
					<li><a href="<?php echo url('admin','dept')?>">部门管理</a></li>
					<li><a href="<?php echo url('admin','visitor')?>">来访单位管理</a></li>
				</ul>
			</div>
			<?php endif;?>
		</div>
    </div>
    <?php endif;?>
    
    <div id="dlg9" class="easyui-dialog" style="width:400px;height:300px;padding:10px 20px"
		closed="true" buttons="#dlg-buttons9">
		<div class="ftitle">修改密码</div>
		<form id="fm9" method="post" novalidate>
			<div class="fitem">
				<label>原始密码:</label>
				<input name="password0" type="password" class="easyui-validatebox" required="true">
			</div>
			<div class="fitem">
				<label>新设密码:</label>
				<input name="password1" type="password" class="easyui-validatebox" required="true" validType="minLength[6]">
			</div>
			<div class="fitem">
				<label>验证密码:</label>
				<input name="password2" type="password" class="easyui-validatebox" required="true" validType="minLength[6]">
			</div>
		</form>
	</div>
	<div id="dlg-buttons9">
		<a href="#" class="easyui-linkbutton" iconCls="icon-ok" onclick="savePassword()">保存</a>
		<a href="#" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#dlg9').dialog('close')">取消</a>
	</div>
	
    
    <div id="cc" region="center" border="true" title="">	
			<?php echo $this->LayoutContent?>
    </div>  
    
    <div region="south" border="false" style="height:35px;">
    	<div class="footer">版权所有 &copy; <?php echo date('Y')?> TSENG ORG, 保留所有权利</div>
    </div>
</body>
</html>